-- GENERATED SPELL FOR [Withered Troll] --


function spell0_28519(pUnit, Event) --@Withering Strike,n/a--
pUnit:FullCastSpellOnTarget(54345,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28519', 4349, 1)
end

function Sorts_28519(pUnit, Event)
local choix_sorts_28519 = math.random(0, 0)
if choix_sorts_28519 == 0 then
pUnit:RegisterEvent('spell0_28519', 1, 1)
end
end

function mob28519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28519', math.random(1500, 3000), 1)
end

function mob28519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28519, 1, 'mob28519_Action')
RegisterUnitEvent(28519, 2, 'mob28519_Leave')
RegisterUnitEvent(28519, 3, 'mob28519_Kill')
RegisterUnitEvent(28519, 4, 'mob28519_Die')
